package com.explorati.interview.interview.chapterfifteen;

import java.text.MessageFormat;

public class MFormat {

	public static void main(String[] args) {
		sendMessage();
	}

	public static void sendMessage() {
		String message = "向 {0} 同学 发送邮件，内容{1}";
		System.out.println(MessageFormat.format(message, "zhangsan", "你好"));
	}

}
